// 用户管理
import request from '@/utils/request1'
// 查询用户信息列表
 function accountList(query) {1
  return request({
    url: '/logistics/Account/list',
    method: 'get',

    params: query
  })
}
// 新增用户信息

export function addAccount(data) {
    return request({
      url: '/logistics/Account',
      method: 'post',
      data: data
    })
  }
//   修改用户信息
  export function updateAccount(data) {
    return request({
      url: '/logistics/Account',
      method: 'put',
      data: data
    })
  }
  // 删除用户
  export function delAccount(userId) {
    return request({
      url: '/logistics/Account/' + userId,
      method: 'delete'
    })
  }
//   获取用户信息详细信息
  export function getAccountDetail(roleId) {
    return request({
      url: '/logistics/Account/' + roleId,
      method: 'get'
    })
  }
  export function getAccountQueryList(query) {
    return request({
      url: '/logistics/Account/queryList',
      method: 'get',
      params: query
    })
  }
//   
export function getCompanyQueryCompanyList(query) {
    return request({
      url: '/logistics/company/queryCompanyList',
      method: 'get',
      params: query
    })
  }

// 
// 查询新增用户下需要绑定的司机信息列表
export function getDriverQueryBindList(query) {
    return request({
      url: '/logistics/driver/queryBindList',
      method: 'get',
      params: query
    })
  }
const obj = {
    accountList, 
    addAccount,
    updateAccount,
    delAccount,
    getAccountDetail,
    getAccountQueryList,
    getDriverQueryBindList,
    getCompanyQueryCompanyList
}
export default obj 